Jx.declare('Jx.data.Operation', {
	
	$extend: 'Jx.lib.Operation',
	
	$accessors: {
		
		url: '',
		
		method: '',
		
		data: undefined,
		
		driver: undefined,
		
		callback: new Function(),
		
		scope: null
		
	},
	
	$actions: [
		
		'request'
		
	],
	
	errorCodes: {
		
		100: 'Driver Error',
		
		110: 'Data Error'

	},
	
	onConfigureId: function(id){
		
		if (id && Jx.isScalar(id)){
			
			this.id = id;
			
		}
		
	},
	
	onConfigureCallback: function(callback){
		
		if (Jx.isFunction(callback)){
			
			this.set( 'callback', callback );
		
		}
		
	},
	
	onConfigureScope: function(scope){
		
		if (typeof scope != 'undefined'){
			
			this.set( 'scope', scope );
		
		}
		
	}
	
	
});
